package com.fmylife.skyrim.tools;

import java.util.List;

import com.fmylife.skyrim.bean.FML_item;
import com.fmylife.skyrim.tools.DOM.DomParser;
import com.fmylife.skyrim.util.CommonUtil;
import com.fmylife.skyrim.util.FMLUtil;

public class FMLTools implements FMLInterface {

	@Override
	public List<FML_item> search(String keyword) {

		return null;
	}

	@Override
	public List<FML_item> getLatest() {
		
		String source = CommonUtil.ViewSource(FMLUtil.lastPage_URL);
//		System.out.println(source);

		return new DomParser(source).parseFML();
	}

	@Override
	public List<FML_item> getTopList() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<FML_item> getFlopList() {
		// TODO Auto-generated method stub
		return null;
	}

}
